﻿using System;
using System.Collections.Generic;
using System.Linq;
using DAL;
using DBUlitity;
using Model;

namespace BLL
{
    
    // Token: 0x02000004 RID: 4
    public class CustomerMFGBLL
    {
        // Token: 0x04000002 RID: 2
        public static List<CustomerEquKaitingche> CustomerEquKaitingche = new List<CustomerEquKaitingche>();
        // Token: 0x06000023 RID: 35 RVA: 0x00002618 File Offset: 0x00000818
        public static string getCustomerList()
        {
            List<CustomerInfo> customerList = CustomerMFGDAL.getCustomerList();
            return JSONTools.ScriptSerialize<List<CustomerInfo>>(customerList);
        }

        // Token: 0x06000024 RID: 36 RVA: 0x00002640 File Offset: 0x00000840
        public static string getEquNoListByCustomerID(string CustomerID)
        {
            List<CustomerEquInfo> equNoListByCustomerID = CustomerMFGDAL.getEquNoListByCustomerID(CustomerID);
            return JSONTools.ScriptSerialize<List<CustomerEquInfo>>(equNoListByCustomerID);
        }

        // Token: 0x06000025 RID: 37 RVA: 0x00002668 File Offset: 0x00000868
        public static string getCustomerListByHongDa()
        {
            List<CustomerNameInfo> customerListByHongDa = CustomerMFGDAL.getCustomerListByHongDa();
            return JSONTools.ScriptSerialize<List<CustomerNameInfo>>(customerListByHongDa);
        }

        // Token: 0x06000026 RID: 38 RVA: 0x00002690 File Offset: 0x00000890
        public static string getToUserNoByCustomerID(string CustomerID)
        {
            List<ToUserInfo> toUserNoByCustomerID = CustomerMFGDAL.getToUserNoByCustomerID(CustomerID);
            return JSONTools.ScriptSerialize<List<ToUserInfo>>(toUserNoByCustomerID);
        }

        // Token: 0x06000027 RID: 39 RVA: 0x000026B8 File Offset: 0x000008B8
        public static string initAlarmInfo(string CustomerID)
        {
            List<ShengchanCushaAlarm> input = CustomerMFGDAL.initAlarmInfo(CustomerID);
            return JSONTools.ScriptSerialize<List<ShengchanCushaAlarm>>(input);
        }

        // Token: 0x06000028 RID: 40 RVA: 0x000026E0 File Offset: 0x000008E0
        public static string initKaitingcheInfo(string CustomerID, string TaiHao, string Type, string BanCi, string StartTime, string EndTime)
        {
            CustomerMFGBLL.CustomerEquKaitingche = CustomerMFGDAL.initKaitingcheInfo(CustomerID, TaiHao, Type, BanCi, StartTime, EndTime);
            return JSONTools.ScriptSerialize<List<CustomerEquKaitingche>>(CustomerMFGBLL.CustomerEquKaitingche);
        }

        // Token: 0x06000029 RID: 41 RVA: 0x00002718 File Offset: 0x00000918
        public static string initKaitingchedetailInfo(string CustomerID, string TaiHao, string Type, string BanCi, string StartTime, string EndTime)
        {
            List<CustomerEquKaitingcheDetail> list = new List<CustomerEquKaitingcheDetail>();
            for (int i = 0; i < CustomerMFGBLL.CustomerEquKaitingche.Count<CustomerEquKaitingche>(); i++)
            {
                list.AddRange(CustomerMFGBLL.CustomerEquKaitingche[i].detail);
            }
            return JSONTools.ScriptSerialize<List<CustomerEquKaitingcheDetail>>(list);
        }

        
    }
}
